const person = {
    name: 'asd',
    age: 14
}

const proxy = new Proxy(person, {
    set(target, p, value) {
        return Reflect.set(target, p, value)
    },
    get(target, p) {
        return Reflect.get(target, p)
    },
    deleteProperty(target, p) {
        console.log(target, p)
        return Reflect.deleteProperty(target, p)
    }
})

proxy.name = "123"
console.log(proxy.name)
console.log(Reflect.get(proxy,'name'))
console.log(Reflect.deleteProperty(proxy, 'age'))
console.log(proxy.age)
